package com.fowo.api.syncLingxingApi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fowo.api.syncLingxingApi.entity.TmpSyncLingxingToSpuInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface TmpSyncLingxingToSpuInfoMapper extends BaseMapper<TmpSyncLingxingToSpuInfo> {

    @Update("truncate table tmp_sync_lingxing_to_spu_info; truncate table tmp_sync_lingxing_to_spu_info_sku_list; truncate table tmp_sync_lingxing_to_spu_info_aux_relation_list;")
    void deleteAll();

    Integer insertSpuInfo(String version);

    Integer insertSpuInfoSkuList(String version);

    Integer insertSpuInfoAuxRelationList(String version);


}
